<div ng-controller="gWarningIndexCtrl">
  <div class="scroll-sub-nav warning-sub-nav">
    <ul class="clearfix">
      <li  ng-class="{cur: stateParams.type === '5'}">
        <a href="javascript:;" ui-sref="g.warning({type: '5'})">预警信息</a>
      </li>
      <li  ng-class="{cur: stateParams.type === '2'}">
        <a href="javascript:;" ui-sref="g.warning({type: '2'})">预警快报</a>
      </li>
      <li ng-class="{cur: stateParams.type === '3'}">
        <a href="javascript:;" ui-sref="g.warning({type: '3'})">典型案例</a>
      </li>
      <li ng-class="{cur: stateParams.type === '7'}">
        <a href="javascript:;" ui-sref="g.warning({type: '7'})">预警交流</a>
      </li>
      <li ng-class="{cur: stateParams.type === '9'}">
        <a href="javascript:;" ui-sref="g.warning({type: '9'})">政策法规</a>
      </li>
    </ul>
  </div>
  <div class="list-box">
    <div class="list-loading" ng-show="warningData.loading"></div>
    <ul class="n-list" infinite-scroll='loadmoreList();'  infinite-scroll-disabled='warningData.loading'>
      <li class="clearfix" ng-repeat="i in warningData.listData">
        <a ui-sref="g.detail({id: i.id})" class="clearfix i-block" ng-if="i.type!='top'">
          <img ng-src="http://wx.ecloud-zj.com/ecloud{{i.imageUrl}}" ng-if="i.imageUrl" class="n-list-thumbnail">
          <div class="n-list-box">
            <h2 ng-bind="i.title" class="n-list-title text-overflow-2"></h2>
            <p ng-bind="i.contents" ng-if="!i.imageUrl" class="n-list-desc text-overflow-2"></p>
            <p  class="n-list-time">{{i.addTime.year}}-{{i.addTime.monthValue}}-{{i.addTime.dayOfMonth}}</p>
          </div>
        </a>

        <a ui-sref="g.detail({id: i.id})" class="clearfix i-block" ng-if="i.type=='top'">
          <h2 ng-bind="i.title" class="n-list-title text-overflow-2"></h2>
          <img ng-src="{{i.imageUrl}}" ng-if="i.imageUrl" class="n-list-big-thumbnail">
          <p  class="n-list-time">{{i.addTime.year}}-{{i.addTime.monthValue}}-{{i.addTime.dayOfMonth}}</p>
        </a>
      </li>
    </ul>
  </div>
</div>
